package org.shop.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.shop.dao.ComplainsMapper;
import org.shop.entity.Complains;
import org.shop.entity.Goods;
import org.shop.service.ComplainsService;
import org.shop.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ComplainsServiceImpl extends BaseServiceImpl<Complains, Long> implements ComplainsService {

	@Autowired
	private ComplainsMapper complainsMapper;
	
	@Override
	public Map<String, Object> getComplainsInfoList(Map<String, Object> paramMap) {
		List<Map<String,Object>> complainsList = complainsMapper.getComplainsInfoList(paramMap);
        Integer count = complainsMapper.getComplainsInfoCount(paramMap);
        //分页数据
        Map<String, Object> dataMap = new HashMap<String, Object>();
        dataMap.put("total", count);
        dataMap.put("rows", complainsList);
        return dataMap;
	}

	
	
	
}